<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<center>
<form:form method="POST" commandName="userAttr">
<table>
	<form:hidden path="id"/>
    <tr>
        <td>Login :</td>
        <td><form:input path="login" /></td>
    </tr>
    <tr>
        <td>Password :</td>
        <td><form:input path="password" value="${userAttr.password}"/></td>
    </tr>
    <tr>
        <td>User type :</td>
        <td>
            <form:select path="userType.id">
            	<form:options items="${userTypesAttr}" itemValue="id" itemLabel="type" />
            </form:select>
        </td>
    </tr>
    <tr>
        <td colspan="2"><input type="submit" value="Edit"></td>
    </tr>
</table>
</form:form>
</center>
</body>
</html>